using System;
using System.Collections.Generic;
using Matrix.ServiceDiscovery.Enums;

namespace Matrix.ServiceDiscovery.Contracts.Dtos
{
    /// <summary>
    /// 心跳输入参数
    /// </summary>
    public class HeartbeatDto
    {
        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServiceName { get; set; } = string.Empty;

        /// <summary>
        /// 实例ID
        /// </summary>
        public string InstanceId { get; set; } = string.Empty;

        /// <summary>
        /// 主机地址
        /// </summary>
        public string Host { get; set; } = string.Empty;

        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 心跳时间戳
        /// </summary>
        public DateTime Timestamp { get; set; } = DateTime.UtcNow;

        /// <summary>
        /// 状态信息
        /// </summary>
        public string? Status { get; set; }

        /// <summary>
        /// 自定义指标
        /// </summary>
        public Dictionary<string, object> Metrics { get; set; } = new();
    }
}